package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.demo.entity.PostFavorite;
import com.example.demo.entity.responseJson.PostFavoriteRes;
import com.example.demo.mapper.base.PostFavoriteBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * 帖子收藏表(PostFavorite)表数据库访问层
 *
 * @author 杨丽辉
 * @since 2021-03-15 10:43:24
 */
@Component
@Mapper
public interface PostFavoriteMapper extends PostFavoriteBaseMapper {
    List<PostFavoriteRes> querybookshelefPost(@Param(Constants.WRAPPER) Wrapper<PostFavorite> ew);
    int countbookshelefPost(@Param(Constants.WRAPPER) Wrapper<PostFavorite> ew);
    int isFavoritePost(@Param(Constants.WRAPPER) Wrapper<PostFavorite> ew);

}
